﻿<%@ Page Title="" Language="C#" MasterPageFile="~/SiteAdmin/MasterPage.master" AutoEventWireup="true" CodeFile="ContractManager.aspx.cs" Inherits="PMSWeb_ContractManager" %>

<asp:Content ID="Content1" ContentPlaceHolderID="contentPlaceHolderID" Runat="Server">
<asp:Panel ID="pnlGrid" runat="server" CssClass="centerPanel" Width="95%">
<div class="searchDiv" >
           <table cellspacing="0" class="searchTable">
            <tr>
                <td>
                系统：
                </td>
                <td>
                    <div class="select"><div><ofcc:DropDownList ID="S_SystemType" runat="server"></ofcc:DropDownList></div></div>
                </td> 
                <td>
                &nbsp;&nbsp;项目名称：
                </td>
                <td>
                <asp:TextBox ID="S_Subject" runat="server" CssClass="smallInput" MaxLength="64" ></asp:TextBox>
                </td>
                <td>
                    &nbsp;&nbsp;<asp:Button ID="btnSearch" runat="server" OnClick="btnSearch_Click" Text=" 查询 "  CssClass="searchButton" />
                </td>
            </tr>
            </table>
     </div>
<div class="webPanelBorder" >
    <div class="webPanelCaption">合同管理</div>
    <div class="webPanelContent"> 
        <ofcc:GridView ID="gridView" runat="server" AutoGenerateColumns="False" 
            OnRowDataBound="gridView_RowDataBound" 
            onsplitpageindexchange="gridView_SplitPageIndexChange">
            <Columns>
                <asp:TemplateField HeaderText="选择">
                    <ItemTemplate>
                        <input ID="ContractID" checked="checked" name="ContractID" type="radio" 
                            value='<%#DataBinder.Eval(Container.DataItem,"ContractID")%>' />
                    </ItemTemplate>
                    <HeaderStyle Width="40px" />
                </asp:TemplateField>
                <asp:BoundField DataField="SystemName" HeaderText="系统" />
                <asp:BoundField DataField="Subject" HeaderText="项目名称" />
                <asp:BoundField DataField="TeamOrg" HeaderText="乙方" />
                <asp:BoundField DataField="Amount" HeaderText="合同金额" />
                <asp:BoundField DataField="LimitTime" HeaderText="协作期限" />
                <asp:BoundField DataField="PayWay" HeaderText="付款方式" />
                <asp:BoundField DataField="TeamWay" HeaderText="协作方式" />
                <asp:BoundField DataField="ContactPerson" HeaderText="联系人" />
                <asp:BoundField DataField="ContactTel" HeaderText="联系电话" />
            </Columns>
        </ofcc:GridView>
     </div>
</div>
<div class="webPanelButtonArea">
    <ofcc:LinkButton ID="btnAdd" runat="server" OnClick="btnAdd_Click" CssClass="linkButton" >新建合同</ofcc:LinkButton>
    <ofcc:LinkButton ID="btnEdit" runat="server" OnClick="btnEdit_Click" CssClass="linkButton" >修改合同</ofcc:LinkButton>
    <ofcc:LinkButton ID="btnRemove" runat="server"  ConfirmMessage="确定要删除吗?" OnClick="btnRemove_Click" CssClass="linkButton" >删除合同</ofcc:LinkButton>
</div>
</asp:Panel>

        
<asp:Panel ID="pnlEdit" runat="server" Width="700px" Visible="false" CssClass="centerPanel">
<div class="webPanelBorder" >
    <div class="webPanelCaption">合同基本信息</div>
    <div class="webPanelContent">
        <table cellspacing="1" class="table">
            <tr>
                <td class="tableSubjectWidth">系统：
                </td>
                <td colspan="3">
                    <div class="select"><div><ofcc:DropDownList ID="P_SystemType" runat="server"></ofcc:DropDownList></div></div>
                    <ofcc:RequiredField ID="RequiredField1" runat="server" />
                </td>
            </tr>
            <tr>
                <td>项目名称：</td>
                <td colspan="3"><asp:TextBox ID="P_Subject" runat="server" CssClass="shortInput" MaxLength="64" ></asp:TextBox>
                <ofcc:RequiredField ID="RequiredField8" runat="server" />
                </td>
            </tr>
            <tr>
                <td>乙方：</td>
                <td><asp:TextBox ID="P_TeamOrg" runat="server" CssClass="smallInput" MaxLength="64"></asp:TextBox>
                    <ofcc:RequiredField ID="RequiredField3" runat="server" />
                </td> 
                <td>合同编号：</td>
                <td><asp:TextBox ID="P_SubjectCode" runat="server" CssClass="smallInput" MaxLength="64"></asp:TextBox>
                     <ofcc:RequiredField ID="RequiredField9" runat="server" />
                </td>
            </tr>
            <tr>
                <td>签订日期：</td>
                <td><asp:TextBox ID="P_MakeDate" runat="server" CssClass="smallInput" onfocus="calendar.ShowCaltable(this, event);" MaxLength="10" ReadOnly="true"></asp:TextBox>
                    <ofcc:RequiredField ID="RequiredField4" runat="server" />
                </td> 
                <td>合同金额：万元(人民币)</td>
                <td><asp:TextBox ID="P_Amount" runat="server" CssClass="smallInput" MaxLength="64"></asp:TextBox>
                    <ofcc:RequiredField ID="RequiredField7" runat="server" />
                </td>
            </tr>
            <tr>
                <td>协作期限：</td>
                <td><asp:TextBox ID="P_LimitTime" runat="server" CssClass="smallInput" MaxLength="64"></asp:TextBox>
                     
                </td> 
                <td>协作方式：</td>
                <td><asp:TextBox ID="P_TeamWay" runat="server" CssClass="smallInput" MaxLength="64" ></asp:TextBox>
                </td> 
            </tr>
            <tr> 
                <td>联系人：</td>
                <td><asp:TextBox ID="P_ContactPerson" runat="server" CssClass="smallInput" MaxLength="64"></asp:TextBox>
                    <ofcc:RequiredField ID="RequiredField6" runat="server" />
                </td>
                <td>联系电话：</td>
                <td><asp:TextBox ID="P_ContactTel" runat="server" CssClass="smallInput" MaxLength="64"></asp:TextBox>
                <ofcc:RequiredField ID="RequiredField2" runat="server" />
                </td> 
            </tr>
            <tr> 
                <td>报送日期：</td>
                <td><asp:TextBox ID="P_PostDate" runat="server" CssClass="smallInput" onfocus="calendar.ShowCaltable(this, event);" MaxLength="10" ReadOnly="true"></asp:TextBox>
                    
                </td> 
                <td>报送人：</td>
                <td colspan="3"><asp:TextBox ID="P_PostUser" runat="server" CssClass="smallInput" MaxLength="64"></asp:TextBox>
                </td>
            </tr> 
            <tr> 
                <td>付款方式：<ofcc:ToolTip CssClass="tip" ToolTip="付款方式请详细填写付款次数、每次付款金额和相应支票号"  ID="ToolTip1" runat="server" /></td>
                <td colspan="3"><asp:TextBox ID="P_PayWay" TextMode="MultiLine"  Rows="3" Width="90%" runat="server" CssClass="smallInput" MaxLength="64" ></asp:TextBox>
                     
                </td>
            </tr> 
            <tr> 
                <td>备注：</td>
                <td colspan="3"><asp:TextBox ID="P_Remark" runat="server" CssClass="shortInput" Width="90%" MaxLength="1024" Rows="3" TextMode="MultiLine"/>
                </td>
            </tr> 
        </table>
    </div> 
</div>
<div class="webPanelButtonArea">
    <ofcc:LinkButton ID="btnSave" runat="server" OnClick="btnSave_Click" CssClass="linkButton" ValidationGroup="submit">保存</ofcc:LinkButton>
    <ofcc:LinkButton ID="btnCancel" runat="server" OnClick="btnCancel_Click"  CssClass="linkButton">取消</ofcc:LinkButton>
</div>
<asp:HiddenField ID="hfAddOrEdit" runat="server" />
<asp:HiddenField ID="hfContractID" runat="server" />
<asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="P_SystemType"
    Display="None" ErrorMessage="请选择系统" ValidationGroup="submit"></asp:RequiredFieldValidator>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="P_Subject"
    Display="None" ErrorMessage="请输入项目名称" ValidationGroup="submit"></asp:RequiredFieldValidator>
<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="P_TeamOrg"
    Display="None" ErrorMessage="请输入乙方" ValidationGroup="submit"></asp:RequiredFieldValidator> 
<asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="P_ContactPerson"
    Display="None" ErrorMessage="请输入联系人" ValidationGroup="submit"></asp:RequiredFieldValidator>
<asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="P_ContactTel"
    Display="None" ErrorMessage="请输入联系电话" ValidationGroup="submit"></asp:RequiredFieldValidator> 
    
<asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="P_Amount"
    Display="None" ErrorMessage="请输入合同金额" ValidationGroup="submit"></asp:RequiredFieldValidator> 
<asp:RegularExpressionValidator ID="RegularExpressionValidator16" runat="server"
   ErrorMessage="合同金额:请输入整数或浮点数!" ControlToValidate="P_Amount" Display="None" ValidationExpression="^[+\-]?\d+(.\d+)?$" ValidationGroup="submit"></asp:RegularExpressionValidator>
<asp:ValidationSummary ID="ValidationSummary1" runat="server" EnableViewState="False"
    ShowMessageBox="True" ShowSummary="False" ValidationGroup="submit" />    
</asp:Panel>
</asp:Content>

